/**
 * @desc 页面整体框架组件
 */
import './app.scss';
import React, { Component } from 'react';
import { Switch, HashRouter as Router, Route } from 'react-router-dom';
import { message, ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
import Layout from '../common/layout';
import Index from 'components/index/Index';
import Database from 'components/dataBase';
import Svg1 from 'components/svg/index1';
import Svg2 from 'components/svg/index2';
import Svg3 from 'components/svg/index3';
message.config({
    top: 100,
    duration: 2,
    maxCount: 1
});
class App extends Component {
    render() {
        return (
            <ConfigProvider locale={zhCN}>
                <Router>
                    <Layout>
                        <Switch>
                            <Route exact path="/" component={Index} />
                            <Route path="/database" component={Database} />
                            <Route path="/chapter1" component={Svg1} />
                            <Route path="/chapter2" component={Svg2} />
                            <Route path="/chapter3" component={Svg3} />
                        </Switch>
                    </Layout>
                </Router>
            </ConfigProvider>
        );
    }
}
export default App;

